package com.ycx.furns.utils;

public class DataUtils {
    public static int parseInt(String num, int defaultVal){
        try {
            return Integer.parseInt(num);
        } catch (NumberFormatException e) {
            System.out.println("字符串转化失败，使用默认值");
            return  defaultVal;
        }

    }
}
